<template>
    <div class="car-header">
        <div class="carresult-header car-baseheader">

            <div class="weui-cell">
                <div class="weui-cell__hd"></div>
                <div class="vux-cell-bd vux-cell-primary">
                    <p>
                        <!---->
                        <div>
                            <div class="car-header-text"><img class="car-header-img" src="~assets/car/car-header2.png">
                                <div class="detail">
                                    <span v-show="!car.carInsureData.isNewCar">{{car.carInsureData.licenseNo}}</span>
                                    <span v-show="car.carInsureData.isNewCar">新车未上牌 {{car.carInsureData.licenseNo}}</span>
                                    <span class="car-header-seleinfo"><br/>{{tprptCarOwnerDtoName}} &nbsp&nbsp{{car.carSelect.showName}}</span>
                                </div>
                            </div>
                        </div>
                    </p>
                    <span class="vux-label-desc"></span>
                </div>
                <div class="weui-cell__ft">
                    <!---->
                </div>
            </div>

        </div>
    </div>
</template>




<script>
import {
    Cell,
} from "vux";
import { mapState, mapActions } from "vuex";
export default {
    components: {

        Cell,

    },
    computed: mapState({
        // insure: "insure",
        detailsStore: "detailsStore",
        isWeChar: "isWeChar",
        carAddr: "carAddr",
        shareData: "shareData",
        initIndexData: "initIndexData",
        car: "car"
    }),
    data() {
        return {
            tprptCarOwnerDtoName: "",
            carInfo: "",
        }
    },
    mounted() {
        try {
            this.carInfo = this.car.carInfoList[this.car.licenseNo].tprptCarOwnerDto.name;
            this.tprptCarOwnerDtoName = this.car.carInfoList[this.car.licenseNo].tprptCarOwnerDto.name;
            if (typeof (this.carInfo) == "undefined") {
                this.carInfo = "";
            }
        } catch (e) {
            this.carInfo = "";
        }
    }
}
</script>

<style lang="scss">
@import "~styles/carCommon";
</style>

<style>

</style>
